<?php
/**
 * Created by PhpStorm.
 * User: 76683
 * Date: 2018/7/16
 * Time: 22:26
 */

namespace app\api\validate;


use think\Validate;

class Login extends Validate
{
    protected $rule = [
        'code'=>'require',
        'raw_data'=>'require',
        'signature'=>'require',
    ];
    protected $message = [
        'code.require'=>'缺少code',
        'raw_data.require'=>'缺少raw_data',
        'signature.require'=>'缺少signature'
    ];

    protected $scene = [
        'login'=>['code','raw_data','signature'],
    ];
}